using System;
using System.Collections.Generic;
namespace MicroMsg.Storage
{
	public class SnsTransStorage : StorageIntKey<SnsTrans>
	{
		public SnsTransStorage() : base((SnsTrans m) => m.nTransID, delegate(SnsTrans snsTrans_0, int int_0)
		{
			snsTrans_0.nTransID = int_0;
			return int_0;
		})
		{
		}
		public SnsTrans getByObjectID(string objiectID)
		{
			return base.method_1((SnsTrans snsTrans_0) => snsTrans_0.strObjectID == objiectID);
		}
		public SnsTrans getByLocalID(int nLocalID)
		{
			return base.method_1((SnsTrans snsTrans_0) => snsTrans_0.nLocalID == nLocalID);
		}
		public void test()
		{
			StorageBasic.onLogin("test");
			this.vmethod_0(new SnsTrans());
			List<SnsTrans> list = base.getList();
			if (list.get_Count() > 0)
			{
				SnsTrans snsTrans = list.get_Item(0);
				snsTrans.bytesXmlData = new byte[6];
				base.update(snsTrans);
			}
		}
	}
}
